/**
 * xdemo.org
 */
package org.xdemo.site.biz.portal.profile.bean;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @作者 Goofy
 * @邮件 252878950@qq.com
 * @日期 2013-12-31
 * @描述 账户信息扩展内容
 */
@Entity
@Table(name="accountExt")
public class AccountExt {
	
	@Id
	@GenericGenerator(name="idGenerator",strategy="uuid")//ID生成器属性包括生成器ID，生成策略
	@GeneratedValue(generator="idGenerator")//引用ID生成器
	@Column(length=64)
	private Long accountExtId;
	/**
	 * 用户名
	 */
	@Column(nullable=true,length=64)
	private String userName;
	/**
	 * 已验证 0:未验证，1：已验证
	 */
	@Column(nullable=false,length=2)
	private int isValid;
	/**
	 * 已禁用账户 0：未禁用，1：已禁用
	 */
	@Column(nullable=false,length=2)
	private int forbidden;
	/**
	 * 需要重置  0：不需要，1：需要
	 */
	@Column(nullable=false,length=2)
	private int reset;
	/**
	 * 重置的key
	 */
	@Column(nullable=false,length=64)
	private String resetKey;
	/**
	 * 申请重置的日期
	 */
	@Column(nullable=false)
	private Date resetDate;
	/**
	 * 注册日期
	 */
	@Column(nullable=false)
	private Date regDate;
	/**
	 * 注册IP
	 */
	@Column(nullable=false)
	private String regIp;
	/**
	 * 用户性别  女，男，不确定
	 */
	@Column(nullable=false)
	private String sex;
	
	
	public Long getAccountExtId() {
		return accountExtId;
	}
	public void setAccountExtId(Long accountExtId) {
		this.accountExtId = accountExtId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public int getIsValid() {
		return isValid;
	}
	public void setIsValid(int isValid) {
		this.isValid = isValid;
	}
	public int getForbidden() {
		return forbidden;
	}
	public void setForbidden(int forbidden) {
		this.forbidden = forbidden;
	}
	public int getReset() {
		return reset;
	}
	public void setReset(int reset) {
		this.reset = reset;
	}
	public String getResetKey() {
		return resetKey;
	}
	public void setResetKey(String resetKey) {
		this.resetKey = resetKey;
	}
	public Date getRegDate() {
		return regDate;
	}
	public void setRegDate(Date regDate) {
		this.regDate = regDate;
	}
	public String getRegIp() {
		return regIp;
	}
	public void setRegIp(String regIp) {
		this.regIp = regIp;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	
	
	
}
